package cn.sxjzit.officlal.service.impl;

import cn.sxjzit.officlal.entity.Company;
import cn.sxjzit.officlal.mapper.CompanyMapper;
import cn.sxjzit.officlal.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    CompanyMapper companyMapper;
    @Override
    public boolean update(Company company) {
        return companyMapper.update(company);
    }

    @Override
    public List<Company> selectAllCompany() {
        return companyMapper.selectAllCompany();
    }

    @Override
    public Company addCompany(Company company) {
        return companyMapper.addCompany(company);
    }

    @Override
    public boolean deleteCompany(int id) {
        return companyMapper.deleteCompany(id);
    }
}
